package actions;

import java.awt.event.ActionEvent;

import foxtrot.Task;
import foxtrot.Worker;

import backend.ThemeManager;

public class RandomThemes extends ToolBarAction
{
	public RandomThemes(ThemeManager controller)
	{
		super("Random", controller);
	}
	public void actionPerformed(ActionEvent arg0)
	{
		try
		{
			Worker.post(new Task()
			{

				@Override
				public Object run() throws Exception
				{
					controller.getRandomThemes();				
					return null;
				}
			
			});
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}		
	}

}
